#!/usr/bin/env bash

mkdir -p /opt/redis/data /opt/redis/conf
cp ./redis.conf /opt/redis/conf
docker pull redis


docker run -d -ti \
-p 6379:6379 \
-v /opt/redis/conf/redis.conf:/etc/redis/redis.conf \
-v /opt/redis/data:/data \
--name pos_redis \
docker.io/redis \
redis-server /etc/redis/redis.conf


docker run -d -ti \
-p 6379:6379 \
-v /home/luohao/redis/conf/redis.conf:/etc/redis/redis.conf \
-v /home/luohao/redis/data:/data \
--name pos_redis \
docker.io/redis \
redis-server /etc/redis/redis.conf